package cn.bbdx.qsh.baking.service;

import cn.bbdx.qsh.baking.pojo.entity.Content;
import cn.bbdx.qsh.baking.pojo.vo.*;

import java.util.List;

public interface ContentService {


    int insert(Content content);

    List<ContentManagementVO> selectByType(Integer type, Long id);

    int update(Content content);

    ContentUpdateVO selectByIdForUpdate(Long id);

    int deleteById(Long id);

    List<ContentIndexVO> selectByTypeAndCategoryId(Integer type, Long categoryId);

    ContentDetailVO selectByIdForDetail(Long id);

    List<ContentSimpleVO> selectByUserId(Long userId);

    int updateViewCountById(Long id);

    List<ContentSimpleVO> selectHot();

    List<ContentIndexVO> selectListByType(Integer type);

    List<ContentIndexVO> selectByWd(String wd);

    int updateCommentCountById(Long contentId);

    List<ContentAdminVO> selectByTypeForAdmin(Integer type);
}
